import Vue from 'vue'
import VueRouter from 'vue-router'
import engNodeAcpt from '@/views/engNodeAcpt/list.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/engNodeAcpt'
  },
  {
    // 工程节点验收
    path: '/engNodeAcpt',
    name: 'engNodeAcpt',
    component: engNodeAcpt
  },
  {
    // 新增工程节点基本信息
    path: '/engNodeAcpt/addmain',
    name: 'enaAddMain',
    component: () => import('@/views/engNodeAcpt/add_main.vue')
  },
  {
    // 新增工程节点副信息
    path: '/engNodeAcpt/addremain',
    name: 'enaAddRemain',
    component: () => import('@/views/engNodeAcpt/add_remain.vue')
  },
  {
    // 编辑工程节点基本信息
    path: '/engNodeAcpt/editmain',
    name: 'enaEditMain',
    component: () => import('@/views/engNodeAcpt/edit_main.vue')
  },
  {
    // 编辑工程节点基本信息
    path: '/engNodeAcpt/editremain',
    name: 'enaEditreMain',
    component: () => import('@/views/engNodeAcpt/edit_remain.vue')
  },
  {
    // 工程节点详细信息
    path: '/engNodeAcpt/detail',
    name: 'enaDetail',
    component: () => import('@/views/engNodeAcpt/detail.vue')
  },
  {
    // 审核页面
    path: '/engNodeAcpt/shenghe',
    name: 'shenghe',
    component: () => import('@/views/engNodeAcpt/shenghe.vue')
  }
]

const router = new VueRouter({routes})

export default router
